﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true"
    CodeFile="Duyettin.aspx.cs" Inherits="Admin_Duyettin" Title="Duyệt tin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="Stylesheet" href="/Online/CSS/Admin.css" type="text/css" />
    <style type="text/css">
        #pnNhap
        {
            margin-top: 10px;
        }
        .GV
        {
            color: White;
            font-size: 17px;
        }
        .GV1
        {
            border: 1px solid #333;
            border-left-style: hidden;
            border-right-style: hidden;
        }
        .tieudetin, .tomtat, .noidung
        {
            width: 1024px;
        }
        .tieudetin
        {
            font-size: 30px;
            font-weight: bold;
            font-family: "Palatino Linotype";
            color: White;
            margin-top: 10px;
            padding-left: 10px;
            padding-right: 10px;
            margin-bottom: 10px;
        }
        .tomtat
        {
            font-size: 17px;
            padding-left: 10px;
            padding-right: 10px;
            margin-bottom: 10px;
            padding: 5px;
        }
        .noidung
        {
            font-size: 18px;
            padding-left: 10px;
            padding-right: 10px;
            margin-bottom: 10px;
            padding: 5px;
        }
        .ht
        {
            width: 1024px;
            color: White;
            margin-top: 10px;
            border: 1px solid #333;
            -webkit-border-radius: 5px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="tieude">
        DUYỆT TIN TỨC</div>
    <div style="min-height:300px;">
        <asp:GridView ID="GVTT" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            DataKeyNames="Matin" CssClass="GV1" PageSize="10" Width="100%" PagerStyle-CssClass="GV"
            PagerStyle-ForeColor="White">
            <Columns>
                <asp:TemplateField HeaderText="Xóa" HeaderStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:CheckBox ID="ckq1" runat="server" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle HorizontalAlign="Center" />
                    <HeaderStyle ForeColor="White" />
                    <ItemStyle ForeColor="White" />
                    <ItemStyle Width="50px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="ID" Visible="false">
                    <ItemTemplate>
                        <asp:Label ID="Ma" runat="server" Text='<%#Eval("Matin") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle HorizontalAlign="Center" />
                    <HeaderStyle ForeColor="White" />
                    <ItemStyle ForeColor="White" />
                    <ControlStyle ForeColor="White" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tiêu đề">
                    <ItemTemplate>
                        <asp:HyperLink ID="hpten" runat="server" Text='<%#Eval("Tieude") %>' NavigateUrl='<%#"/Online/Admin/Duyettin.aspx?"+"m="+Eval("Matin") %>'
                            CssClass="HyperLink1"></asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" />
                    <HeaderStyle HorizontalAlign="Center" />
                    <HeaderStyle ForeColor="White" />
                    <ItemStyle ForeColor="White" />
                    <ControlStyle ForeColor="White" />
                </asp:TemplateField>
                <asp:BoundField DataField="Taikhoan" HeaderText="Người đăng" SortExpression="Taikhoan">
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle HorizontalAlign="Center" />
                    <HeaderStyle ForeColor="White" />
                    <ItemStyle ForeColor="White" />
                    <ControlStyle ForeColor="White" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="Ngày đăng">
                    <ItemTemplate>
                        <asp:Label ID="ngaydang" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Ngaydang", "{0:dd/MM/yyyy hh:mm:ss}")%> '></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle Width="200px" />
                    <HeaderStyle ForeColor="White" />
                    <ItemStyle ForeColor="White" />
                    <ControlStyle ForeColor="White" />
                </asp:TemplateField>
                <asp:BoundField DataField="Hienthi" HeaderText="Hiển thị" SortExpression="Hienthi">
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderStyle HorizontalAlign="Center" />
                    <HeaderStyle ForeColor="White" />
                    <ItemStyle ForeColor="White" />
                    <ItemStyle Width="80px" />
                    <ControlStyle ForeColor="White" />
                </asp:BoundField>
            </Columns>
        </asp:GridView>
        <div style="color: White; width: 1024px; float: left; text-align: center; font-style: italic;
            margin-top: 10px; margin-left: 20px;">
            <asp:Label ID="Label1" runat="server"></asp:Label><br />
        </div>
    
    <asp:Panel ID="htTin" runat="server" CssClass="ht">
        <div class="tieudetin">
            <asp:Label ID="tdtin" runat="server"></asp:Label>
        </div>
        <div class="tomtat">
            <asp:Label ID="tomtat" runat="server"></asp:Label>
        </div>
        <div class="noidung">
            <asp:Label ID="noidung" runat="server"></asp:Label>
        </div>
        <div style="margin-top: 10px;margin-bottom:10px;">
            <asp:Button ID="BtnDang" runat="server" Text="Đăng bài này" OnClick="BtnDang_Click" />
            <asp:Button ID="BtnHuy" runat="server" Text="Hủy bài này" OnClick="BtnHuy_Click" />
            <asp:Button ID="BtnDSau" runat="server" Text="Duyệt sau" OnClick="BtnDSau_Click" />
        </div>
        <div style="color: White; width: 1024px; float: left; text-align: center; font-style: italic;
            margin-top: 10px; margin-left: 20px;">
            <asp:Label ID="tb" runat="server"></asp:Label><br />
        </div>
    </asp:Panel>
    </div>
</asp:Content>
